#include "Mylogger.hpp"
#include <iostream>
#include <string>
using std::cout;
using std::endl;
using std::string;

void test0(){
    Mylogger::getInstance()->warn("this is a warn msg");
    Mylogger::destroy();
}

void test1(){
    cout << __FILE__ << endl;
    cout << __func__ << endl;
    cout << __LINE__ << endl;
}

void test2(){
    string res = addPrefix("this is a warn msg");
    cout << res << endl;
}

void test3(){
    Mylogger::getInstance()->warn(addPrefix("this is a warn msg"));
    Mylogger::destroy();
}


void test4(){
    LogWarn("The log is warn message");
    Mylogger::destroy();
}

int main(void){
    test4();
    return 0;
}
